package com.yidu.best.stock.moneyTransfers.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yidu.best.stock.moneyTransfers.domain.MoneyTransfersVo;
import com.yidu.best.stock.moneyTransfers.service.MoneyTransferService;
import com.yidu.best.stock.stockTrade.domain.StockTradeVo;

@Controller
@RequestMapping("stockClearing")
public class MoneyTransfersController {
	@Autowired
	private MoneyTransferService moneyTransferService;

	public MoneyTransfersController() {
		super();
	}

	public MoneyTransfersController(MoneyTransferService moneyTransferService) {
		super();
		this.moneyTransferService = moneyTransferService;
	}

	public MoneyTransferService getMoneyTransferService() {
		return moneyTransferService;
	}

	public void setMoneyTransferService(MoneyTransferService moneyTransferService) {
		this.moneyTransferService = moneyTransferService;
	}
	
	/**
	 * 加载资金调拨数据信息
	 * @return
	 */
	@RequestMapping(value = "stockClearing")
	public String clearingList() {
		return "sys/stock/stockClearing";
		
	}
	
	/**
	 * 查找所有资金调拨数据
	 * @param MoneyTransfersVo 资金交易对象
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="moneyTransfers",method=RequestMethod.GET)
	public Map<String, Object> queryMoneyTransfers(MoneyTransfersVo moneyTransfersVo){
		Map<String, Object> moneyTransfersMap =moneyTransferService.findPageQuery(moneyTransfersVo);
		return moneyTransfersMap;
	}
	
	
}
